﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Form.Master" AutoEventWireup="true" CodeBehind="Form_Goods.aspx.cs" Inherits="BBPA.Admin.Store.Orders.Form_Goods" %>

<%@ MasterType VirtualPath="~/Form.Master" %>
<asp:Content ID="Content4" ContentPlaceHolderID="head" runat="server">
    <script>

        function changenum(type)
        {
            var num =parseInt($("#ctl00_cph_main_tb_ExpectAmount").val());
            var normnum = parseInt($("#ctl00_cph_main_hdnnormnum").val());
            if (type ==0) {
                if (num == 1) return;
                num = num - 1;
            } else {
                num = num + normnum;
            }
            $("#ctl00_cph_main_tb_ExpectAmount").val(num)
        }
    </script>
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_main" runat="server">
    <div class="control-group">
        <label class="control-label">
            商品名称
        </label>
        <div class="controls" style="padding-top:6px;">
            <%=modelV_Goods.BrandName %> <%=modelV_Goods.Name %> <%=modelV_Goods.Code %>
        </div>
    </div>
    <div class="control-group" id="group_Discount" runat="server">
        <label class="control-label">
            折扣
        </label>
        <div class="controls">
            <asp:Repeater ID="rp_Discount" runat="server">
                <ItemTemplate>满<%#StringPlus.showMoney( Eval("Money")) %> <%#Convert.ToDecimal(Eval("DiscountSell"))/10 %>折 <%#Convert.ToDateTime(Eval("DateFrom")).ToShortDateString() %>-<%#Convert.ToDateTime(Eval("DateTo")).ToShortDateString() %></ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
    <div class="control-group" id="group_GiftNumber" runat="server">
        <label class="control-label">
            满赠
        </label>
        <div class="controls">
            <asp:Repeater ID="rp_GiftNumber" runat="server">
                <ItemTemplate>满<%# Eval("Number") %> 赠<%#Convert.ToDecimal(Eval("GiftNumberSell"))/10 %> <%#Convert.ToDateTime(Eval("DateFrom")).ToShortDateString() %>-<%#Convert.ToDateTime(Eval("DateTo")).ToShortDateString() %></ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
    <div class="control-group" id="Div1" runat="server">
        <label class="control-label">
            规格
        </label>
        <div class="controls" style="padding-top:6px;">
            <%=modelV_Goods.Normnum %><%=modelV_Goods.Normtype %>每<%=modelV_Goods.Norm %>(<span style="color:red">请尽量整箱订购，方便包装发货，部分商品批发商不同意拆箱采购</span>)
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            数量
        </label>
        <div class="controls">
            <asp:HiddenField ID="hdnnormnum" runat="server" Value="0"/>
            <asp:TextBox ID="tb_ExpectAmount" runat="server" required="required" placeholder="必填" Text="1" Enabled="false"></asp:TextBox><%=modelV_Goods.Normtype %><input type="button" id="btnjian" value=" - " onclick="changenum(0)"/><input type="button" id="btnjia" value=" + " onclick="changenum(1)"/>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            备注
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Description" runat="server" TextMode="MultiLine"></asp:TextBox>
        </div>
    </div>
</asp:Content>
